#简单赋值
x = 10
print(x)

# 序列赋值
x, y = 1, 2
print(x, y)
(x, y) = 10, 20
print(x, y)
[x, y] = 30,'abc'
print(x, y)

#字符串赋值
x,b = 'ab'
print(x,b)

((x,y),z) = 'ab','cd'
print(x,y,z)

#带*的赋值,不带*的变量只获取一个值，带*的变量获取多个值
x,*y = 'abcd'
print(x,y)

*x,y = 'abcd'
print(x,y)

x,*y,z = 'abcde'
print(x,y,z)

#多目标赋值
a = b = c =10
print(a,b,c)


